<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<p>Make sure spell checker attempts to spell check uneditable text "Bob".</p>
<div id="edit" contenteditable="true"><span contenteditable="false">Bob</span> ; <span contenteditable="false"></span></div>
<div id="log"></div>
<script>
if (window.testRunner)
    testRunner.setMockSpellCheckerEnabled(true);

test(function() {
    var text = edit.childNodes[1];
    var selection = window.getSelection();
    selection.collapse(text, text.length);
    // Trigger spell checking
    selection.modify('move', 'right', 'character');

    if (window.internals)
      internals.runIdleTimeSpellChecker(document);
});
</script>
